﻿#pragma once
#include "AsQBasicGlobal.h"
#include <QRect>

__AS_JY(Update 2023.01.07)
namespace As {

	AS_QBASIC_EXPORT bool isZero(float f);

	AS_QBASIC_EXPORT bool isZero(double f);

	AS_QBASIC_EXPORT bool isEqual(float f1, float f2);

	AS_QBASIC_EXPORT bool isEqual(double f1, double f2);

	AS_QBASIC_EXPORT bool isGreaterEqualThan(float f1, float f2);

	AS_QBASIC_EXPORT bool isGreaterEqualThan(double f1, double f2);

	AS_QBASIC_EXPORT bool isLessEqualThan(float f1, float f2);

	AS_QBASIC_EXPORT bool isLessEqualThan(double f1, double f2);

	AS_QBASIC_EXPORT void Move(QRect& rect, int mov_x, int mov_y);

	AS_QBASIC_EXPORT void Move(QRectF& rect, int mov_x, int mov_y);

	AS_QBASIC_EXPORT void Expand(QRect& rect, int left, int right, int top, int bottom);

	AS_QBASIC_EXPORT void Expand(QRectF& rect, int left, int right, int top, int bottom);

};

